/**
 * Created by wangfei on 2017/6/23.
 */
/**
 *
 *  @auth xlx_good@qq.com
 *  @date 17/6/21.
 *
 */

requirejs.config({
    baseUrl: '',
    paths:  {
        avalon: 'javascript/avalon.min',
        jquery: 'js/plugins/jquery/jquery-2.1.1.min',
        slimscroll: 'js/plugins/jquery/jquery.slimscroll',
        navPage: 'nav-page',
    },
    shim: {
        'slimscroll':{
            deps: ['jquery']
        }
    }
});


(function(win, dom, requirejs, initVm){
    var vm;
    requirejs(['avalon', 'jquery', 'slimscroll', 'navPage'], function(){
        //初始化vm
        vm = initVm(dom);
    });

})(window, document, requirejs, function(dom){
    var vm = avalon.define({
        $id:'container'
    })
    avalon.scan(dom.body);
    return vm;
});



